﻿using System;
using Microsoft.SmallBasic.Library;
using SmallBasicFun;
using Math = Microsoft.SmallBasic.Library.Math;

namespace TurtleTree
{
    public class TurtleTree
    {
        //answer = Math.GetRandomNumber(100)
        //guess = MessageBox.AskForInput("Guess a number between 1-100")
        //Sound.PlayBellRingAndWait()
        //MessageBox.ShowMessage("You won!")
        //Program.End()
        public static void Main()
        {
            Tortoise.SetSpeed(10);
            //Make the tortoise go as fast as possible

            //Turn the background black

            //The current branch length = 60

            //CreateBranchColors (recipe below)

            //DrawBranch(recipe below)

            //------------- Recipe for CreateBranchColors

            // A 10 pixel long branch is lime

            // A 20 pixel long branch is forest green

            // A 30 pixel long branch is dark green

            // A 40 pixel long branch is olive

            // A 50 pixel long branch is sienna

            // A 60 pixel long branch is saddle brown

            //------------- End of CreateBranchColors recipe

            //------------- Recipe for DrawBranch

            //If the current branch length is greater than zero

                // AdjustColor (recipe below)

                // Move the tortoise the length of the current branch

                // DrawLowerBranches (recipe below)

                // AdjustColor (recipe below)

                // Move the tortoise backward the length of the current branch


            //------------- End of DrawBranch recipe 

            //------------- Recipe for AdjustColor

            // Change the current color to the current BRANCH color for the current BRANCH length

            // Change the color of the line the Tortoise draws to the current color

            //------------- End of AdjustColor recipe 

            //------------- Recipe for DrawLowerBranches

            // Turn the Tortoise 30 degrees to the right

            // DrawShorterBranch (recipe below)

            // Turn the Tortoise 60 degrees to the left

            // DrawShorterBranch (recipe below)

            // Turn the Tortoise 30 degrees to the right

            //------------- End of DrawLowerBranches recipe

            //------------- Recipe for DrawShorterBranch

            // Decrease the length of the current branch by 10 pixels

            // DrawBranch (recipe above)

            // Increase the length of the current branch by 10 pixels

            //------------- End of DrawLowerBranches recipe

        }


        public static void AdjustPen()
        {
            /*
            if (blah)
            {
                
            }
            else if (b)
            {
                
            }
            else if (b)
            {

            }
            else if (b)
            {

            }
            else
            {
                
            }
            */
        }


    }
}